home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C++ / Applications / Nuntius 1.2 / src / Nuntius / UArticle.h < prev    next >
Encoding:
Text File  |  1994-03-06  |  1.1 KB  |  40 lines  |  [TEXT/MPS ]

  1. // Copyright © 1992 Peter Speck, speck@dat.ruc.dk. All rights reserved.
  2. // UArticle.h
  3.  
  4. #define __UARTICLE__
  5.  
  6. #ifndef __XTYPES__
  7. #include "XTypes.h"
  8. #endif
  9.  
  10. class TOffsetLengthList;
  11.  
  12. class TArticle : public TObject
  13. {
  14.     public:
  15.         void GetLineInfo(ArrayIndex &noLines, ArrayIndex &bodyStartLineNo);
  16.  
  17.         void GetLine(ArrayIndex lineNo, CStr255 &text); // without CR
  18.             
  19.         Boolean GetHeader(const char *name, CStr255 &text); 
  20.         // returns false if non-existing.
  21.         // *name == name of header without colon and space, eg "References"
  22.     
  23.         Boolean ContainsJapaneseEncoding();
  24.         
  25.         Boolean IsArticle(const CStr255 &groupDotName, long articleID);    
  26.         void GetArticleID(CStr255 &groupDotName, long &articleID);    
  27.         
  28.         pascal void Initialize();
  29.         void IArticle(const CStr255 &groupDotName, long articleID);
  30.         pascal void Free();
  31.     private:
  32.         TOffsetLengthList *fTextIndex;
  33.         CStr255 fGroupDotName;
  34.         long fArticleID;
  35.         long fNoHeaderLines;
  36.         Boolean fContainsJapaneseEncoding;
  37.  
  38.         Boolean CompareStoreHeaderName(const char *name, unsigned char *lineStart, CStr255 &text);
  39.         void MakeTextIndex();
  40. };